const {BrowserWindow} = require('electron')
const path = require('path');

let win;
function create(){
  win = new BrowserWindow({
    width: 600,
    height: 300,
    webPreferences: {
      nodeIntegration: true,
      contextIsolation: false
    }
  });

  win.loadFile(path.resolve(__dirname,'index.html'))
}

module.exports = {create};
